// Tester.cpp : Defines the entry point for the console application.
//
//c:\Documents and Settings\boazf\My Documents\Visual Studio 2008\Projects\socketing\Header\DynamicHeader.h
#include "../header/DynamicHeader.h"
#include <iostream>

using namespace std;
class TypeA : public IHeaderSegment
{
public:
	TypeA(string a)
	{
		data = a;
	}
	string Serialize()
	{
		return data;
	}

	void DeSerialize(string const& val)
	{

	}

	string data;
};

class TypeB : public IHeaderSegment
{
public:
	TypeB(string a)
	{
		data = a;
	}
	string Serialize()
	{
		return data;
	}

	void DeSerialize(string const& val)
	{

	}

	string data;
};


int main(int argc, char* argv[])
{
	
	CDynamicHeader b;

	CDynamicHeader::iterator	a;
	
	
	b.addItem(new TypeA("1"));
	b.addItem(new TypeB("2"));
	b.addItem(new TypeA("3"));
	b.addItem(new TypeB("4"));

	cout << b.Serialize() << endl;
	
	return 0;
}

